package edu.sctu.practice.class02.shuqiqi.assign.assign03.One;

/**
 * Created by admin on 2015/10/22.
 */
public class Circle extends GeometricObject {
    public double radius;
    double pi = 3.14;

    public Circle(String color, double radius) {
        super("red");
        this.radius = radius;
        this.color = color;
    }

    @Override
    public void findArea() {
        area = pi * radius * radius;
        System.out.println("" + area);
    }

    @Override
    public void findPerimeter() {
        Perimeter = 2 * pi * radius;
        System.out.println("" + Perimeter);
    }

    public String toString() {
        return " " + radius;
    }
}
